<template>
	<view class="search">
		<!-- 使用 view 组件模拟 input 输入框的样式 -->
		<view class="box">
			<uni-icons type="search" size="20"></uni-icons>
			 <text class="placeholder">搜索</text>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.search{
		height: 50px;
		background-color: #C00000;
		display: flex;
		justify-content: space-around;
		.box{
			height: 40px;
			width: 90%;
			background-color: white;
			border-radius: 30px;
			display: flex;
			justify-content: center;
			align-items: center;
			.placeholder{
				font-size: 18px;
				margin-left: 5px;
			}
		}
	}

</style>